﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace VDataAdapter.Communication
{
    public class MessageBuilderSaver : MessageBuilder
    {
        protected MessageBuilderRecorder _recorder;
        public MessageBuilderSaver() : base()
        {
            _recorder = new MessageBuilderRecorder();
        }

        public override string BuildMessageStock(PriceLibrary.PriceService.StockInfoStatic objStatic, 
            PriceLibrary.PriceService.StockInfoDyns objNew,PriceLibrary.PriceService.StockInfoDyns objOld)
        {
            string msg = base.BuildMessageStock(objStatic, objNew, objOld);
            //_recorder.WriteBuildMessageStock(objStatic, objNew, objOld, msg);
            return msg;
        }

         public override string BuildMessageSellPutThrough(PriceLibrary.PriceService.StockInfoStatic objStatic, 
            PriceLibrary.PriceService.StockInfoDyns objNew, 
            PriceLibrary.PriceService.StockInfoDyns objOld){
            
            string msg = base.BuildMessageSellPutThrough(objStatic, objNew, objOld);
            //_recorder.WriteBuildMessagePutThrough(objStatic, objNew, objOld, msg, TransactionType.Sell);
            return msg;

        }
        public override string BuildMessageBuyPutThrough(PriceLibrary.PriceService.StockInfoStatic objStatic, 
            PriceLibrary.PriceService.StockInfoDyns objNew, 
            PriceLibrary.PriceService.StockInfoDyns objOld){
            
            string msg = base.BuildMessageBuyPutThrough(objStatic, objNew, objOld);
            //_recorder.WriteBuildMessagePutThrough(objStatic, objNew, objOld, msg, TransactionType.Buy);
            return msg;

        }
        public override string BuildMessageMarket(PriceLibrary.PriceService.MarketInfo objNew, 
            PriceLibrary.PriceService.MarketInfo objOld)
        { 
            string msg = base.BuildMessageMarket(objNew, objOld);
            //_recorder.WriteBuildMessageMarket(objNew, objOld, msg);            
            return msg;
        }

        public override string BuildMessageTransaction(PriceLibrary.ChartService.Transaction objNew,
    PriceLibrary.ChartService.Transaction objOld)
        {
            string msg = base.BuildMessageTransaction(objNew, objOld);
            //_recorder.WriteBuildMessageTransaction(objNew, objOld, msg);
            return msg;
        }

        public override string BuildMessageTransactionPutThrough(PriceLibrary.PriceService.Transaction objNew,
    PriceLibrary.PriceService.Transaction objOld)
        {
            string msg = base.BuildMessageTransactionPutThrough(objNew, objOld);
            //_recorder.WriteBuildMessageTransactionPutThrough(objNew, objOld, msg);
            return msg;
        }

    }
}
